package com.ambulance.project.biz.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 心电数据
 * </p>
 *
 * @author zr
 * @since 2020-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("biz_ecg_data_info")
@ApiModel(value="EcgDataInfo对象", description="心电数据")
public class EcgDataInfo extends Model<EcgDataInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "车辆标识")
    @TableField("carID")
    private Integer carID;

    @ApiModelProperty(value = "调度标识")
    @TableField("dispatchID")
    private Integer dispatchID;

    @ApiModelProperty(value = "包数量")
    @TableField("package_num")
    private Integer packageNum;

    @ApiModelProperty(value = "ecg数值")
    @TableField("ecg")
    private String ecg;

    @ApiModelProperty(value = "bpm单位")
    @TableField("bpm")
    private String bpm;

    @ApiModelProperty(value = "nibp数值")
    @TableField("nibp")
    private String nibp;

    @ApiModelProperty(value = "nibp类型 手动、自动")
    @TableField("nibpType")
    private String nibpType;

    @ApiModelProperty(value = "mmHg值")
    @TableField("mmHg")
    private String mmHg;

    @ApiModelProperty(value = "spo2值")
    @TableField("spo2")
    private String spo2;

    @ApiModelProperty(value = "pr值")
    @TableField("pr")
    private String pr;

    @ApiModelProperty(value = "pi值")
    @TableField("pi")
    private String pi;

    @ApiModelProperty(value = "resp值")
    @TableField("resp")
    private String resp;

    @ApiModelProperty(value = "resp_rpm值")
    @TableField("resp_rpm")
    private String respRpm;

    @ApiModelProperty(value = "art值")
    @TableField("art")
    private String art;

    @ApiModelProperty(value = "art_rpm值")
    @TableField("art_rpm")
    private String artRpm;

    @ApiModelProperty(value = "temp值")
    @TableField("temp")
    private String temp;

    @TableField("t1")
    private String t1;

    @TableField("t2")
    private String t2;

    @TableField("temp_rpm")
    private String tempRpm;

    @TableField("co2")
    private String co2;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
